.chattingBox {
  padding-left: 10px;
  height: 100%;
  width: 100%;
}

.chattingHistory {
  height: calc(100% - 255px);
  width: 100%;

  > .nickname {
    font-weight: bold;
    padding-left: 20px;
    height: 30px;
    border-bottom: 1px solid #d9d8d8de;
  }

  > .history {
    height: calc(100% - 30px);
    overflow-y: auto;

    > .messageItem {
      width: 100%;
      display: flex;
      padding-top: 10px;
      padding-bottom: 10px;

      > .avatar {
        width: 40px;
        padding-left: 10px;
        padding-right: 10px;
      }

      > .detail {
        flex: 1;
        > .name {
          font-size: 15px;
          color: #c5c5c5;
        }
        > .message {
          // width: 80%;
          max-width: calc(100% - 160px);
          width: fit-content;
          padding: 4px 10px;
          border-radius: 6px;
          background-color: #fefefe;
          margin-top: 6px;

          > div:nth-child(1) {
            word-wrap: break-word;
          }
          > div:nth-child(2) {
            margin-top: 10px;
            border-top: 1px solid #dedede;
            font-size: 13px;
            color: #a7a7a7;
          }
        }
      }
    }

    > .selfMessage {
      display: flex;
      flex-direction: row-reverse;
      > .name {
        display: flex;
        justify-content: flex-end;
      }
      > .detail {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        > .message {
          background-color: #ffe9e1;
        }
      }
    }
  }
}

.chattingEditor {
  height: 250px;
  width: 100%;
  // border-top: 1px solid #d0d0d0de;

  > .funcBar {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    > .funcBtn {
      display: flex;
      > * {
        margin: 4px 6px;
        background-color: #ffebeb;
      }
    }
    > .submitBtn {
      margin: 4px 6px;
    }
  }

  > .messageInput {
    height: calc(100% - 40px);
  }
}
